import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PmProjectFilesComponent } from './pm-project-files/pm-project-files.component';
import { PmVersionMngComponent } from './pm-version-mng/pm-version-mng.component';
import { PmProjectFilesDetailComponent } from './pm-project-files/pm-project-files-detail.component';
import { PmHistoryVersionComponent } from './pm-history-version/pm-history-version.component';
import { PmDefectMngComponent } from './pm-defect-mng/pm-defect-mng.component';
import { PmFloodPlanComponent } from './pm-flood/pm-flood-plan/pm-flood-plan.component';
import { PmFloodMaterialComponent } from './pm-flood/pm-flood-material/pm-flood-material.component';
import { PmFloodPracticeComponent } from './pm-flood/pm-flood-practice/pm-flood-practice.component';
import { PmCheckComponent } from './pm-check/pm-check.component';
import { PmMaintainComponent } from './pm-maintain/pm-maintain.component';

const routes: Routes = [
    {
        path: '',
        children: [
            {path: '', redirectTo: '/map', pathMatch: 'full'},
            {path: 'file-mng', component: PmProjectFilesComponent},
            {path: 'file-detail', component: PmProjectFilesDetailComponent},
            {path: 'version-mng', component: PmVersionMngComponent},
            {path: 'history-version', component: PmHistoryVersionComponent},
            {path: 'pm-defect', component: PmDefectMngComponent},
            {path: 'flood-plan', component: PmFloodPlanComponent},
            {path: 'flood-material', component: PmFloodMaterialComponent},
            {path: 'flood-practice', component: PmFloodPracticeComponent},
            {path: 'pm-check', component: PmCheckComponent},
            {path: 'pm-maintain', component: PmMaintainComponent},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ProjectMngRoutingModule {
}
